package com.unknownman.block.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.unknownman.block.entity.TChainConfig;
import org.apache.ibatis.annotations.Param;

/**
 * <p>
 * NFT链配置 Mapper 接口
 * </p>
 *
 * @author xhy
 * @since 2021-10-16
 */
public interface TChainConfigMapper extends BaseMapper<TChainConfig> {

    /**
     * 更新最后区块
     *
     * @param id
     * @param block
     * @return
     */
    int updateLastBlock(@Param("id") Long id, @Param("block") Long block, @Param("success") boolean success);
}
